append() และ appendTo() jQuery การแทรก Elements ภายในด้านล่าง
				บทความวันที่ 13 พฤศจิกายน 2555
				
	append และ appendTo คือ คำสั่งของ jQuery ในหมวดของ DOM มีไำว้สำหรับการแทรก Elements ไว้ภายในด้านล่าง Elements ที่ต้องการ โดยทั้ง 2 คำสั่งมีความแตกต่าง และ้เหมือนกันดังนี้
	 
	ภาพรวมของ append และ appendTo
	1. ทั้ง 2 คำสั่งมีไว้สำหรับการแทรก Elements ไว้ภายในด้านล่าง Elements ที่ต้องการ
	2. คำสั่งของ append คือ $('[Target_Element]').append('[New_Element]')
	3. คำสั่งของ appendTo คือ $('[New_Element]').appendTo(['Target_Element]')
	4. คำสั่ง append ไม่จำเป็นต้องมี Elements คุมข้อมูล แต่ appendTo ต้องมี Elements คุมข้อมูล
	 
	ตัวอย่างโปรแกรม
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="jquery.min.js"></script>
<title>amplysoft.com</title>
</head>
<body>
<p>
Target Element Line 1<br/>
Target Element Line 2<br/>
</p>
<script type="text/javascript">
$(document).ready(function(){
	$('p').append('Insering New Elements with append()<br/>');
	$('<div>Insering New Elements with appendTo()</div>').appendTo('p');
});
</script>
</body>
</html>
	 
	ผลลัพธ์
	
คำค้นหา append() และ appendTo() jQuery, รับเขียนเว็บ, รับทำเว็บ, เรียนเขียนโปรแกรม